<%--
  Created by IntelliJ IDEA.
  User: l
  Date: 2022/5/11
  Time: 14:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="menu.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="admin_index.jsp">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="admin_cateselect">分类管理</a><span class="crumb-step">&gt;</span><span>修改分类</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form action="/lyq/admin/admin_docateupdate" method="post" id="myform" onsubmit="return checkForm(this)" name="myform">
                <input type="hidden" name="id" value="${c.cate_id}">
                <table class="insert-tab" width="100%">
                    <tbody>
                    <tr>
                        <th><i class="require-red">*</i>父分类：</th>
                        <td>
                            <select class="common-text required"  name="parentid" >
                                <option value="0">根分类</option>
                                <c:forEach items="${catelist}" var="cate">
                                    <C:if test="${cate.cate_parent_id == 0}">
                                        <C:if test="${c.cate_parent_id == cate.cate_id}">
                                            <option value="${cate.cate_id}" selected="selected">${cate.cate_name}</option>
                                        </C:if>
                                        <C:if test="${c.cate_parent_id != cate.cate_id}">
                                            <option value="${cate.cate_id}">${cate.cate_name}</option>
                                        </C:if>
                                    </C:if>
                                </c:forEach>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>分类名称：</th>
                        <td><input class="common-text" value="${c.cate_name}" name="classname" size="50" type="text"></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" value="修改" type="submit">
                            <input class="btn btn6" onClick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody></table>
            </form>
        </div>
    </div>

</div>
<!--/main-->
</div>
</body>
</html>
